//
//  saoyisaoViewController.h
//  HAODE
//
//  Created by panquanReabam.com on 15/12/14.
//  Copyright © 2015年 reabam.com. All rights reserved.
//


#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>




@class saoyisaoViewController;

//  委托方步骤1
@protocol saoyisaoViewControllerDelegate <NSObject>

@required
- (void)secondViewController:(saoyisaoViewController *)secondViewController
                  updateText:(NSString *)text;

@end

@interface saoyisaoViewController : UIViewController<AVCaptureMetadataOutputObjectsDelegate,UIAlertViewDelegate>
{
    NSTimer * timer;
    int num;
    BOOL isDown;
    NSString *stringValue;
    UIAlertView* alt;
}
@property (nonatomic, weak) id<saoyisaoViewControllerDelegate> delegate;
@property(nonatomic,strong)NSString* sta;
@property (strong, nonatomic) UIImageView *viewPreview1;
@property (strong, nonatomic) UIImageView *viewPreview;
@property(nonatomic) BOOL isReading;
@property(nonatomic,strong) AVCaptureSession *captureSession;
@property(nonatomic,strong) AVCaptureSession *captureSession1;
@property(nonatomic,strong) AVCaptureVideoPreviewLayer *videoPreviewLayer;
@property(nonatomic,strong) AVCaptureVideoPreviewLayer *videoPreviewLayer1;
@property (nonatomic, retain) UIView * line;
@property (retain, nonatomic) UIAlertView* alt;
- (void)showAlertWait;
- (void)showAlertMessage:(NSString*)msg;
- (void)hideAlert;

@end









